package grape.attend.rest.vacation.mapper;

import grape.attend.rest.vacation.form.VacationListForm;
import grape.attend.service.vacation.po.Vacation;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.attend.rest.vacation.form.VacationCreateForm;
import grape.attend.rest.vacation.form.VacationUpdateForm;
import grape.attend.rest.vacation.form.VacationListPageForm;
import grape.attend.rest.vacation.vo.VacationVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 假期表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-05-08
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface VacationWebMapper extends WebMapper<VacationVo, Vacation> {

    Vacation formToPo(VacationCreateForm f);
    Vacation formToPo(VacationUpdateForm f);
    Vacation formToPo(VacationListPageForm f);
    Vacation formToPo(VacationListForm f);
}
